
/**
** \file       exec_case.c
**
** \brief      this function execute case rule
**
** \author     Ben M'rad Hanna, Laterem Hamza, Boillot Ulysse, De Olivera
**             Guillaume and Nguyen Viet Dung
**
** \version    0.8
**
** \date       23 November 2010
**
*/

#include "execution.h"

int             exec_case(s_rulecase            *node)
{
  if (node->in_case != NULL)
  {
    if (node->in_in != NULL)
    {
      if (exec_case_clause(node->in_in) != 0)
        return (1);
    }
    return (0);
  }
  return (1);
}
